<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColImgIdToCouponCodeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('coupon_code', function (Blueprint $table) {
            $table->integer('img_id')->default(0)->comment('图片id')->after('is_use');
            $table->integer('user_id')->default(0)->comment('用户id')->after('is_use');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
